package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    /**
     * 根据菜品id查询套餐id
     * @param ids
     * @return
     */
    List<Long> getSetmealIdsByDishIds(List<Long> ids);

    /**
     * 新增套餐
     * @param id
     * @return
     */
    void saveDishItemBySetmealId(Long id, List<SetmealDish> setmealDishes);

    /**
     * 根据套餐id删除套餐菜品
     * @param ids
     */
    void delete(List<Long> ids);
}
